package com.fourforfo.fourmall.product.dao;

import com.fourforfo.fourmall.product.entity.AttrEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fourforfo.fourmall.product.entity.ProductAttrValueEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品属性
 * 
 * @author fourforfo
 * @email fourforfo@gmail.com
 * @date 2022-06-15 21:04:46
 */
@Mapper
public interface AttrDao extends BaseMapper<AttrEntity> {


    /**
     * SELECT attr_id FROM `pms_attr` WHERE attr_id IN(?) AND search_type = 1
     */
    List<Long> listSearchAttrsByIds(@Param("attrIds") List<Long> attrIds);
}
